package doh.util;

import java.io.Serializable;

/**
 *
 * @author davidsass
 */
public class GameSessionDetails implements Serializable
{
    GamePlayer player1;
    GamePlayer player2;
    boolean winner = false;

    public GameSessionDetails(GamePlayer p1, GamePlayer p2)
    {
        player1 = p1;
        player2 = p2;
    }

    public GameSessionDetails(GamePlayer p1, GamePlayer p2, boolean w)
    {
        player1 = p1;
        player2 = p2;
        winner = w;
    }

    public GamePlayer getPlayer1()
    {
        return player1;
    }

    public GamePlayer getPlayer2()
    {
        return player2;
    }

    public void changeWinner(boolean win)
    {
        winner = win;
    }

    public boolean getWinner()
    {
        return winner;
    }




}
